import {myRequest} from './http.js'
// console.log('进来了')
export default {
	
	//获取轮播图
	 lunbtu() {
		return myRequest({
			url: '/api/public/v1/home/swiperdata',
			method: 'GET',
		})
	},
	//获取导航
	getnavigation(){
		return myRequest({
			url: '/api/public/v1/home/catitems',
			method: 'GET',
		})
	},
	//获取商品列表
	getgoodslist(){
		return myRequest({
			url: '/api/public/v1/categories',
			method: 'GET',
		})
	},
	goodsgetlist(params){
		return myRequest({
			url: '/api/public/v1/goods/search?pagenum=' +params.pagenum + '&pagesize=' + params.pagesize ,
			method: 'GET'
		})
	},
	//获取商品详情
	getProductDetail(id){
		return myRequest({
			url: '/api/public/v1/goods/detail?goods_id=' + id,
			method: 'GET'
		})
	},
}
